/* 3D 展览馆页面样式 */

.look-page {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #f3f4f6;
    overflow: hidden;
}

/* 退出按钮 */
.exit-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 15;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.exit-button:hover {
    background: rgba(220, 38, 38, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.exit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.canvas-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* 顶部操作说明 */
.instructions {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 10;
    animation: fade-in-down 300ms ease-out;
}

.instructions h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
}

.instructions p {
    margin: 0;
    font-size: 13px;
    opacity: 0.95;
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translate(-50%, -8px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 信息面板 */
.info-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    pointer-events: none;
    /* 透传除内容外的点击 */
}

.info-content {
    position: relative;
    width: 340px;
    max-width: calc(100vw - 48px);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
    padding: 16px 16px 18px 16px;
    pointer-events: auto;
    /* 面板可交互 */
    animation: float-in 220ms ease-out;
}

.info-content h3 {
    margin: 0 28px 6px 0;
    font-size: 18px;
    color: #111827;
}

.info-content .artist {
    margin: 0 28px 10px 0;
    font-size: 13px;
    color: #6b7280;
}

.info-content .description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 160ms ease;
}

.close-btn:hover {
    background: #f3f4f6;
    transform: scale(1.04);
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 底部控制提示 */
.controls-hint {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1f2937;
    font-size: 14px;
}

.key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 6px;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* 响应式优化 */
@media (max-width: 640px) {
    .instructions {
        left: 12px;
        right: 12px;
        transform: none;
    }

    .info-panel {
        right: 12px;
        left: 12px;
        bottom: 12px;
    }

    .info-content {
        width: auto;
    }

    .controls-hint {
        left: 12px;
        right: 12px;
        transform: none;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 10px;
    }

    .control-item span:last-child {
        font-size: 12px;
    }
}


/* 接近出口提示 */
.exit-toast {
    position: absolute;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.95);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
    font-size: 14px;
    font-weight: 600;
    z-index: 12;
    animation: toast-pop 220ms ease-out;
}

@keyframes toast-pop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}